<%@ include file = "/js/_of_js.jsp"%>
<script>
    function submitData()
    {
        if(detailForm.newPassWord.value != detailForm.passWordAgain.value)
        {
            alert("新密码和确认密码不一致,请重新输入.");
            detailForm.newPassWord.focus();
            return;
        }
        if(detailForm.newPassWord.value =="")
        {
            alert("新密码不能为空");
            detailForm.newPassWord.focus();
            return;
        }
        if(detailForm.newPassWord.value.length != 6)
        {
            alert("新密码长度必须为6位");
            detailForm.newPassWord.focus();
            return;
        }
        detailForm.submit();
    }

    function goback()
    {
        window.location.href = "<%= request.getContextPath()%>/_home.jsp";
    }

    function bodyLoadJS()
    {
        detailForm.oldPassWord.focus();
    }

</script>
<form action="Controller.jsp" name="detailForm" method="post">
    <tr >
        <td class="detailTD11">原密码&nbsp;&nbsp;</td>
        <td class="detailTD12">
        <input type="password" name="oldPassWord" value="" size="20" maxlength="6" onkeyup="nextOfFocused(this)" afterFocusedJS="" of="true">
        </td>
    </tr>
    <tr >
        <td class="detailTD21">新密码&nbsp;&nbsp;</td>
        <td class="detailTD22">
        <input type="password" name="newPassWord" value="" size="20" maxlength="6" onkeyup="nextOfFocused(this)" afterFocusedJS="" of="true">
        </td>
    </tr>
    <tr >
        <td class="detailTD11">确认密码&nbsp;&nbsp;</td>
        <td class="detailTD12">
        <input type="password" name="passWordAgain" value="" size="20" maxlength="6" onkeyup="nextOfFocused(this)" afterFocusedJS="" of="true">
        </td>       
    </tr>
      <input type="hidden" name="serviceURL" value="sysframe.user.ChangeUserPassWordService">
</form>
